import request from '@/utils/request'

/**
 * 用户登录
 * @param {*} username 
 * @param {*} password 
 */
export function login(username, password) {
  const data={
    account:username,
    password:password,
  }
  return request.post('/login', data)
}

/**
 * 获取登录用户及权限
 */  
export function getCurrentUser() {
    return request.get('/base/user/getCurrentUser');
  }


